class PropAwardView extends BaseView{//个人奖励道具
    public constructor(){
        super();
        this.addEventListener(egret.Event.ADDED_TO_STAGE,this.getViews,this);
        this.touchEnabled = true;
        this.addEventListener(egret.TouchEvent.TOUCH_TAP,this.showPropAwards,this);
    }
    private async getViews(){
        let self = this;
        let mc = await ViewManager.mcManager.play('propaward','propaward','propaward');
            mc.scaleX = 2;
            mc.scaleY = 2;
            mc.x = 0;
            mc.y = 0;
            mc.gotoAndPlay(1, -1);
            self.addChild(mc); 
        let proptext = new BaseTextField;
        proptext.text = '奖励道具';
        proptext.size = 22;
        proptext.textColor = 0xefd78c;
        proptext.stroke = 2;
        proptext.strokeColor = 0x492a05;
        proptext.bold = true;
        proptext.y = this.height - proptext.height - 10;
        proptext.x = this.width /2 - proptext.width /2;
        this.addChild(proptext);
    }
    private showPropAwards(){
        Main.showRewardView();
    }
}